package com.aspose.cells;

import java.util.Hashtable;

public class ImageFormat {
   private int a;
   private static Hashtable<String, ImageFormat> b = new Hashtable();
   private static Hashtable<ImageFormat, String> c = new Hashtable();
   private static Hashtable<String, ImageFormat> d = new Hashtable();
   private static int e = 1;
   private static int f = 2;
   private static int g = 3;
   private static int h = 4;
   private static int i = 5;
   private static int j = 6;
   private static int k = 7;
   private static int l = 8;
   private static int m = 9;
   private static int n = 10;
   private static int o = 11;
   private static int p = 12;
   private static ImageFormat q;
   private static ImageFormat r;
   private static ImageFormat s;
   private static ImageFormat t;
   private static ImageFormat u;
   private static ImageFormat v;
   private static ImageFormat w;
   private static ImageFormat x;
   private static ImageFormat y;
   private static ImageFormat z;
   private static ImageFormat A;
   private static ImageFormat B;

   public ImageFormat(int imageFormatID) {
      this.a = imageFormatID;
   }

   public static ImageFormat getBmp() {
      return q;
   }

   public static ImageFormat getEmf() {
      return r;
   }

   public static ImageFormat getExif() {
      return s;
   }

   public static ImageFormat getGif() {
      return u;
   }

   public static ImageFormat getIcon() {
      return v;
   }

   public static ImageFormat getJpeg() {
      return w;
   }

   public static ImageFormat getMemoryBmp() {
      return x;
   }

   public static ImageFormat getPng() {
      return z;
   }

   public static ImageFormat getTiff() {
      return A;
   }

   public static ImageFormat getWmf() {
      return B;
   }

   public com.aspose.cells.b.a.zh a() {
      throw new com.aspose.cells.a.c.zb("");
   }

   public boolean equals(Object obj) {
      ImageFormat var2 = (ImageFormat)obj;
      if (var2 == null) {
         return false;
      } else {
         return this.a == var2.a;
      }
   }

   public String getName() {
      if (this.a == e) {
         return "BMP";
      } else if (this.a == f) {
         return "EMF";
      } else if (this.a == g) {
         return "EXIF";
      } else if (this.a == h) {
         return "FLASH_PIX";
      } else if (this.a == i) {
         return "GIF";
      } else if (this.a == j) {
         return "ICON";
      } else if (this.a == k) {
         return "JPEG";
      } else if (this.a == l) {
         return "MEMORY_BMP";
      } else if (this.a == m) {
         return "PHOTO_CD";
      } else if (this.a == n) {
         return "PNG";
      } else if (this.a == o) {
         return "TIFF";
      } else {
         return this.a == p ? "WMF" : "";
      }
   }

   public static ImageFormat getImageFormatFromSuffixName(String name) {
      return (ImageFormat)b.get(name);
   }

   public static String a(ImageFormat var0) {
      return (String)c.get(var0);
   }

   public static ImageFormat a(String var0) {
      return (ImageFormat)d.get(var0.toUpperCase());
   }

   static {
      q = new ImageFormat(e);
      r = new ImageFormat(f);
      s = new ImageFormat(g);
      t = new ImageFormat(h);
      u = new ImageFormat(i);
      v = new ImageFormat(j);
      w = new ImageFormat(k);
      x = new ImageFormat(l);
      y = new ImageFormat(m);
      z = new ImageFormat(n);
      A = new ImageFormat(o);
      B = new ImageFormat(p);
      b.put("bmp", q);
      b.put("exif", s);
      b.put("pix", t);
      b.put("icon", v);
      b.put("gif", u);
      b.put("png", z);
      b.put("jpg", w);
      b.put("tif", A);
      c.put(q, "BMP");
      c.put(u, "GIF");
      c.put(z, "PNG");
      c.put(w, "JPEG");
      c.put(w, "JPG");
      d.put("BMP", q);
      d.put("GIF", u);
      d.put("PNG", z);
      d.put("JPEG", w);
      d.put("JPG", w);
   }
}
